package bridge.switchs;

import bridge.lights.ILight;

/**
 * 遥控开关
 *
 * @author laigl 2017年7月12日
 *
 */
public class RemoteControlSwitch extends BaseSwitch {

	public RemoteControlSwitch(ILight light) {
		super(light);
	}

	/**
	 * 使用遥控开关控制开灯
	 * 
	 * @param operColor
	 */
	public final void makeRemoteLight(int operColor) {
		this.light.electricConnected();
		this.light.light();

		String color = "";
		switch (operColor) {
		case 1:
			color = "暖色";
			break;
		case 2:
			color = "蓝色";
			break;
		case 3:
			color = "红色";
			break;
		default:
			color = "白色";
			break;
		}

		System.out.println("---现在是！..." + color + "!");
		this.light.electricClosed();
	}

}
